<div class="divstudent" [appHighlightstudent] ="showhight">
    <ng-content select="span"></ng-content>

    <ng-template #good let-data>
        <img [src]="data.img" class="rounded mx-auto" (click)="studentImgClick(data)">
        <span>{{"总分："+(zongchegnji).toFixed(2)}}</span>
        <!-- <div class="divgood">成绩合格！</div> -->
        <!-- 自定义指令 -->
        <!-- <div [appSetbackground]="bgcolor">成绩合格！</div> -->
        <div   [appSetbackground]="{backColor:tbgcolor,color:tcolor}" >成绩合格！</div>
        
        <input type="text" placeholder="说点什么！" (input)="0" #message/>
        <button [appbuttondynamicclass2]="{'buttonclass':true,'buttonclass2':true}" > 删除</button>
    </ng-template>

    <ng-template #nogood let-data>
        <img [src]="data.img" class="rounded mx-auto" (click)="studentImgClick(data)">
        <span>{{"总分："+(zongchegnji).toFixed(2)}}</span>
        <!-- <div class="divnogood">成绩不合格！</div> -->
         <!-- 自定义指令 -->
         <!-- <div [appSetbackground]="bgcolor">成绩不合格！</div> -->

         <div [appSetbackground]="{backColor:tbgcolor,color:tcolor}" >成绩不合格！</div>
        <input type="text" placeholder="说点什么！" (input)="0" #message/>
        <!-- <button [appbuttondynamicclass2]="{className:'buttonclass',active:true}" (click)="deleteStudent(data)"> 删除</button>
         -->
         <button [appbuttondynamicclass2]="{'buttonclass':true,'buttonclass2':true}" 
         (click)="deleteStudent(data)"> 删除</button>
    </ng-template>
    
   <!-- 成绩评定 -->
   <div *ngTemplateOutlet="temptemplate!;context: {$implicit: student}"></div>

    <!-- <ng-container *ngIf="student">
        <ng-template *ngTemplateOutlet="temptemplate;{}"></ng-template>
    </ng-container> -->
     <!-- 内部定义一个成绩评定默认模版 -->
    <ng-template #defaultpingding>
        
    </ng-template>

</div>